home *** CD-ROM | disk | FTP | other *** search
- ISHFT(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- IISSHHFFTT, IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT, RRSSHHIIFFTT - Performs a logical
- shift
-
- SSYYNNOOPPSSIISS
- IISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- IIIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- JJIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- KKIISSHHFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- LLSSHHIIFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
- RRSSHHIIFFTT (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- Fortran extensions: IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT, RRSSHHIIFFTT
-
- DDEESSCCRRIIPPTTIIOONN
- The IISSHHFFTT, IIIISSHHFFTT, JJIISSHHFFTT, KKIISSHHFFTT, LLSSHHIIFFTT and RRSSHHIIFFTT intrinsic
- functions perform a logical shift. They accept the following
- arguments:
-
- _i Must be of type integer. For IIIISSHHFFTT, must be of type
- integer (KIND=2). For JJIISSHHFFTT, must be of type integer
- (KIND=4). For KKIISSHHFFTT, must be of type integer (KIND=8).
-
- _s_h_i_f_t Must be of type integer. The absolute value of _s_h_i_f_t must
- be less than or equal to BBIITT__SSIIZZEE((_i)).
-
- IISSHHFFTT with a positive _s_h_i_f_t argument can also be specified
- as LLSSHHIIFFTT. IISSHHFFTT with a negative _s_h_i_f_t argument can also be
- specified as RRSSHHIIFFTT with |_s_h_i_f_t|.
-
- These are elemental intrinsic functions. The names of these
- intrinsics cannot be passed as arguments.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameters are the same as _i. On IRIX
- systems, the result can be affected by the --ii option on the ff9900(1)
- command line.
-
- The result has the value obtained by shifting the bits of _i by _s_h_i_f_t
- positions. If _s_h_i_f_t is positive, the shift is to the left; if _s_h_i_f_t
- is negative, the shift is to the right; and if _s_h_i_f_t is zero, no shift
- is performed. Bits shifted out from the left or from the right, as
- appropriate, are lost. Zeros are shifted in from the opposite end.
-
- LLSSHHIIFFTT and RRSSHHIIFFTT return the value of the first argument shifted left
- or right, respectively, the number of times specified by the _s_h_i_f_t.
- Zeros are shifted in.
-
- The bit model defines the interpretation of an integer value as a
- sequence of bits. For more information on the bit model, see the
- MMOODDEELLSS(3I) man page.
-
- EEXXAAMMPPLLEESS
- IISSHHFFTT((33,,11)) has the result 6.
-
- SSEEEE AALLSSOO
- ff9900(1)
-
- MMOODDEELLSS(3I)
-
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-